<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('order', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('uid') -> comment('用户ID');
            $table->string('rec') -> comment('收货人');
            $table->string('addr') -> comment('收货地址');
            $table->string('tel') -> comment('电话');
            $table->string('status') -> comment('订单状态,0为未发货,1为已发货未签收,2为已签收');
            $table->string('umsg') -> commet('买家留言');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('order');
    }
}
